/** 所有任务执行入口 */
const pig = require('./taskPig.js');
const goldTree = require('./taskGoldTree.js');
const family = require('./taskFamily.js');

pig.run();
setInterval(() => {
    pig.run();
    goldTree.run();
}, 3 * 60 * 1000);

family.run();
let familyTask = setInterval(() => {
    let res = family.run();
    if (res.isDailyFinish) {
        clearInterval(familyTask);
        console.log("当天家庭号任务已完成");
    }
}, 30 * 1000);